.class public Lcn/sharesdk/onekeyshare/OnekeyShare;
.super Lcn/sharesdk/framework/FakeActivity;
.source "OnekeyShare.java"

# interfaces
.implements Landroid/os/Handler$Callback;
.implements Landroid/view/View$OnClickListener;
.implements Lcn/sharesdk/framework/PlatformActionListener;


# static fields
.field private static final MSG_ACTION_CCALLBACK:I = 0x2

.field private static final MSG_CANCEL_NOTIFY:I = 0x3

.field private static final MSG_TOAST:I = 0x1


# instance fields
.field private animHide:Landroid/view/animation/Animation;

.field private animShow:Landroid/view/animation/Animation;

.field private btnCancel:Landroid/widget/Button;

.field private callback:Lcn/sharesdk/framework/PlatformActionListener;

.field private canceled:Z

.field private customers:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/onekeyshare/CustomerLogo;",
            ">;"
        }
    .end annotation
.end field

.field private customizeCallback:Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;

.field private dialogMode:Z

.field private disableSSO:Z

.field private finishing:Z

.field private flPage:Landroid/widget/FrameLayout;

.field private grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

.field private hiddenPlatforms:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private notifyIcon:I

.field private notifyTitle:Ljava/lang/String;

.field private reqMap:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private silent:Z


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 85
    invoke-direct {p0}, Lcn/sharesdk/framework/FakeActivity;-><init>()V

    .line 86
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    .line 87
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customers:Ljava/util/ArrayList;

    .line 88
    iput-object p0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->callback:Lcn/sharesdk/framework/PlatformActionListener;

    .line 89
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->hiddenPlatforms:Ljava/util/HashMap;

    .line 90
    return-void
.end method

.method static synthetic access$000(Lcn/sharesdk/onekeyshare/OnekeyShare;)Landroid/widget/FrameLayout;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/OnekeyShare;

    .prologue
    .line 57
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    return-object v0
.end method

.method static synthetic access$101(Lcn/sharesdk/onekeyshare/OnekeyShare;)V
    .registers 1
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/OnekeyShare;

    .prologue
    .line 57
    invoke-super {p0}, Lcn/sharesdk/framework/FakeActivity;->finish()V

    return-void
.end method

.method private initAnim()V
    .registers 10

    .prologue
    .line 379
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/high16 v6, 0x3f800000

    const/4 v7, 0x1

    const/4 v8, 0x0

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animShow:Landroid/view/animation/Animation;

    .line 384
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animShow:Landroid/view/animation/Animation;

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 386
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x1

    const/high16 v8, 0x3f800000

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animHide:Landroid/view/animation/Animation;

    .line 391
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animHide:Landroid/view/animation/Animation;

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 392
    return-void
.end method

.method private initPageView()V
    .registers 14

    .prologue
    const/4 v12, 0x1

    const/4 v9, -0x2

    const/4 v11, 0x0

    const/4 v10, -0x1

    .line 326
    new-instance v7, Landroid/widget/FrameLayout;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v8

    invoke-direct {v7, v8}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    .line 327
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {v7, p0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 330
    new-instance v1, Lcn/sharesdk/onekeyshare/OnekeyShare$1;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-direct {v1, p0, v7}, Lcn/sharesdk/onekeyshare/OnekeyShare$1;-><init>(Lcn/sharesdk/onekeyshare/OnekeyShare;Landroid/content/Context;)V

    .line 335
    .local v1, "llPage":Landroid/widget/LinearLayout;
    invoke-virtual {v1, v12}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 336
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    const-string v8, "share_vp_back"

    invoke-static {v7, v8}, Lcn/sharesdk/framework/utils/R;->getBitmapRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v5

    .line 337
    .local v5, "resId":I
    if-lez v5, :cond_2f

    .line 338
    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 340
    :cond_2f
    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v3, v10, v9}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    .line 342
    .local v3, "lpLl":Landroid/widget/FrameLayout$LayoutParams;
    const/16 v7, 0x50

    iput v7, v3, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    .line 343
    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 344
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {v7, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 347
    new-instance v7, Lcn/sharesdk/onekeyshare/PlatformGridView;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v8

    invoke-direct {v7, v8}, Lcn/sharesdk/onekeyshare/PlatformGridView;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    .line 348
    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v4, v10, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 350
    .local v4, "lpWg":Landroid/widget/LinearLayout$LayoutParams;
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    invoke-virtual {v7, v4}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 351
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 354
    new-instance v7, Landroid/widget/Button;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v8

    invoke-direct {v7, v8}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    .line 355
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v7, v10}, Landroid/widget/Button;->setTextColor(I)V

    .line 356
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    const/high16 v8, 0x41a00000

    invoke-virtual {v7, v12, v8}, Landroid/widget/Button;->setTextSize(IF)V

    .line 357
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    const-string v8, "cancel"

    invoke-static {v7, v8}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v5

    .line 358
    if-lez v5, :cond_82

    .line 359
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v7, v5}, Landroid/widget/Button;->setText(I)V

    .line 361
    :cond_82
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v8

    const/4 v9, 0x5

    invoke-static {v8, v9}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v8

    invoke-virtual {v7, v11, v11, v11, v8}, Landroid/widget/Button;->setPadding(IIII)V

    .line 365
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    invoke-static {v7}, Lcn/sharesdk/onekeyshare/utils/ResourceUtil;->getInstance(Landroid/content/Context;)Lcn/sharesdk/onekeyshare/utils/ResourceUtil;

    move-result-object v6

    .line 366
    .local v6, "resUtil":Lcn/sharesdk/onekeyshare/utils/ResourceUtil;
    const-string v7, "btn_cancel_back"

    invoke-virtual {v6, v7}, Lcn/sharesdk/onekeyshare/utils/ResourceUtil;->drawableId(Ljava/lang/String;)I

    move-result v5

    .line 367
    if-lez v5, :cond_a5

    .line 368
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v7, v5}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 370
    :cond_a5
    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    .line 371
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    const/16 v8, 0x2d

    invoke-static {v7, v8}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v7

    invoke-direct {v2, v10, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 372
    .local v2, "lpBtn":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v7

    const/16 v8, 0xa

    invoke-static {v7, v8}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v0

    .line 373
    .local v0, "dp_10":I
    invoke-virtual {v2, v0, v0, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 374
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v7, v2}, Landroid/widget/Button;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 375
    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 376
    return-void
.end method

.method private showNotification(JLjava/lang/String;)V
    .registers 19
    .param p1, "cancelTime"    # J
    .param p3, "text"    # Ljava/lang/String;

    .prologue
    .line 670
    :try_start_0
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v9

    invoke-virtual {v9}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    .line 671
    .local v2, "app":Landroid/content/Context;
    const-string v9, "notification"

    .line 672
    invoke-virtual {v2, v9}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Landroid/app/NotificationManager;

    .line 673
    .local v6, "nm":Landroid/app/NotificationManager;
    const v4, 0x9d89d8a

    .line 674
    .local v4, "id":I
    const v9, 0x9d89d8a

    invoke-virtual {v6, v9}, Landroid/app/NotificationManager;->cancel(I)V

    .line 676
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v10

    .line 677
    .local v10, "when":J
    new-instance v7, Landroid/app/Notification;

    iget v9, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->notifyIcon:I

    move-object/from16 v0, p3

    invoke-direct {v7, v9, v0, v10, v11}, Landroid/app/Notification;-><init>(ILjava/lang/CharSequence;J)V

    .line 678
    .local v7, "notification":Landroid/app/Notification;
    const/4 v9, 0x0

    new-instance v12, Landroid/content/Intent;

    invoke-direct {v12}, Landroid/content/Intent;-><init>()V

    const/4 v13, 0x0

    invoke-static {v2, v9, v12, v13}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v8

    .line 679
    .local v8, "pi":Landroid/app/PendingIntent;
    iget-object v9, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->notifyTitle:Ljava/lang/String;

    move-object/from16 v0, p3

    invoke-virtual {v7, v2, v9, v0, v8}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V

    .line 680
    const/16 v9, 0x10

    iput v9, v7, Landroid/app/Notification;->flags:I

    .line 681
    const v9, 0x9d89d8a

    invoke-virtual {v6, v9, v7}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    .line 683
    const-wide/16 v12, 0x0

    cmp-long v9, p1, v12

    if-lez v9, :cond_5c

    .line 684
    new-instance v5, Landroid/os/Message;

    invoke-direct {v5}, Landroid/os/Message;-><init>()V

    .line 685
    .local v5, "msg":Landroid/os/Message;
    const/4 v9, 0x3

    iput v9, v5, Landroid/os/Message;->what:I

    .line 686
    iput-object v6, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 687
    const v9, 0x9d89d8a

    iput v9, v5, Landroid/os/Message;->arg1:I

    .line 688
    move-wide/from16 v0, p1

    invoke-static {v5, v0, v1, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessageDelayed(Landroid/os/Message;JLandroid/os/Handler$Callback;)Z
    :try_end_5c
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_5c} :catch_5d

    .line 693
    .end local v2    # "app":Landroid/content/Context;
    .end local v4    # "id":I
    .end local v5    # "msg":Landroid/os/Message;
    .end local v6    # "nm":Landroid/app/NotificationManager;
    .end local v7    # "notification":Landroid/app/Notification;
    .end local v8    # "pi":Landroid/app/PendingIntent;
    .end local v10    # "when":J
    :cond_5c
    :goto_5c
    return-void

    .line 690
    :catch_5d
    move-exception v3

    .line 691
    .local v3, "e":Ljava/lang/Exception;
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_5c
.end method


# virtual methods
.method public addHiddenPlatform(Ljava/lang/String;)V
    .registers 3
    .param p1, "platform"    # Ljava/lang/String;

    .prologue
    .line 243
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->hiddenPlatforms:Ljava/util/HashMap;

    invoke-virtual {v0, p1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 244
    return-void
.end method

.method public disableSSOWhenAuthorize()V
    .registers 2

    .prologue
    .line 232
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->disableSSO:Z

    .line 233
    return-void
.end method

.method public finish()V
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 415
    iget-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->finishing:Z

    if-eqz v0, :cond_6

    .line 446
    :goto_5
    return-void

    .line 419
    :cond_6
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animHide:Landroid/view/animation/Animation;

    if-nez v0, :cond_10

    .line 420
    iput-boolean v2, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->finishing:Z

    .line 421
    invoke-super {p0}, Lcn/sharesdk/framework/FakeActivity;->finish()V

    goto :goto_5

    .line 426
    :cond_10
    iget-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->canceled:Z

    if-eqz v0, :cond_19

    .line 427
    const/4 v0, 0x2

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcn/sharesdk/framework/ShareSDK;->logDemoEvent(ILcn/sharesdk/framework/Platform;)V

    .line 429
    :cond_19
    iput-boolean v2, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->finishing:Z

    .line 430
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animHide:Landroid/view/animation/Animation;

    new-instance v1, Lcn/sharesdk/onekeyshare/OnekeyShare$2;

    invoke-direct {v1, p0}, Lcn/sharesdk/onekeyshare/OnekeyShare$2;-><init>(Lcn/sharesdk/onekeyshare/OnekeyShare;)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 444
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->clearAnimation()V

    .line 445
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animHide:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_5
.end method

.method public getCallback()Lcn/sharesdk/framework/PlatformActionListener;
    .registers 2

    .prologue
    .line 208
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->callback:Lcn/sharesdk/framework/PlatformActionListener;

    return-object v0
.end method

.method getParams()Ljava/util/HashMap;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    .prologue
    .line 198
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    return-object v0
.end method

.method public getShareContentCustomizeCallback()Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;
    .registers 2

    .prologue
    .line 218
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customizeCallback:Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;

    return-object v0
.end method

.method public getText()Ljava/lang/String;
    .registers 3

    .prologue
    .line 127
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "text"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_17

    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "text"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    :goto_16
    return-object v0

    :cond_17
    const/4 v0, 0x0

    goto :goto_16
.end method

.method public handleMessage(Landroid/os/Message;)Z
    .registers 11
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const/4 v8, 0x0

    const-wide/16 v6, 0x7d0

    .line 595
    iget v4, p1, Landroid/os/Message;->what:I

    packed-switch v4, :pswitch_data_11c

    .line 664
    :cond_8
    :goto_8
    return v8

    .line 597
    :pswitch_9
    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    .line 598
    .local v3, "text":Ljava/lang/String;
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v4, v3, v8}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    goto :goto_8

    .line 602
    .end local v3    # "text":Ljava/lang/String;
    :pswitch_19
    iget v4, p1, Landroid/os/Message;->arg1:I

    packed-switch v4, :pswitch_data_126

    goto :goto_8

    .line 605
    :pswitch_1f
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "share_completed"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 606
    .local v2, "resId":I
    if-lez v2, :cond_8

    .line 607
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto :goto_8

    .line 613
    .end local v2    # "resId":I
    :pswitch_37
    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    .line 614
    .local v0, "expName":Ljava/lang/String;
    const-string v4, "WechatClientNotExistException"

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_59

    const-string v4, "WechatTimelineNotSupportedException"

    .line 615
    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_59

    const-string v4, "WechatFavoriteNotSupportedException"

    .line 616
    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_71

    .line 617
    :cond_59
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "wechat_client_inavailable"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 618
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 619
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto :goto_8

    .line 621
    .end local v2    # "resId":I
    :cond_71
    const-string v4, "GooglePlusClientNotExistException"

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_92

    .line 622
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "google_plus_client_inavailable"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 623
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 624
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto/16 :goto_8

    .line 626
    .end local v2    # "resId":I
    :cond_92
    const-string v4, "QQClientNotExistException"

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_b3

    .line 627
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "qq_client_inavailable"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 628
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 629
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto/16 :goto_8

    .line 631
    .end local v2    # "resId":I
    :cond_b3
    const-string v4, "YixinClientNotExistException"

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_c3

    const-string v4, "YixinTimelineNotSupportedException"

    .line 632
    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_dc

    .line 633
    :cond_c3
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "yixin_client_inavailable"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 634
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 635
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto/16 :goto_8

    .line 638
    .end local v2    # "resId":I
    :cond_dc
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "share_failed"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 639
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 640
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto/16 :goto_8

    .line 647
    .end local v0    # "expName":Ljava/lang/String;
    .end local v2    # "resId":I
    :pswitch_f5
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    const-string v5, "share_canceled"

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v2

    .line 648
    .restart local v2    # "resId":I
    if-lez v2, :cond_8

    .line 649
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {p0, v6, v7, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    goto/16 :goto_8

    .line 657
    .end local v2    # "resId":I
    :pswitch_10e
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Landroid/app/NotificationManager;

    .line 658
    .local v1, "nm":Landroid/app/NotificationManager;
    if-eqz v1, :cond_8

    .line 659
    iget v4, p1, Landroid/os/Message;->arg1:I

    invoke-virtual {v1, v4}, Landroid/app/NotificationManager;->cancel(I)V

    goto/16 :goto_8

    .line 595
    nop

    :pswitch_data_11c
    .packed-switch 0x1
        :pswitch_9
        :pswitch_19
        :pswitch_10e
    .end packed-switch

    .line 602
    :pswitch_data_126
    .packed-switch 0x1
        :pswitch_1f
        :pswitch_37
        :pswitch_f5
    .end packed-switch
.end method

.method public onCancel(Lcn/sharesdk/framework/Platform;I)V
    .registers 5
    .param p1, "platform"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I

    .prologue
    .line 586
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 587
    .local v0, "msg":Landroid/os/Message;
    const/4 v1, 0x2

    iput v1, v0, Landroid/os/Message;->what:I

    .line 588
    const/4 v1, 0x3

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 589
    iput p2, v0, Landroid/os/Message;->arg2:I

    .line 590
    iput-object p1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 591
    invoke-static {v0, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    .line 592
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 395
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_10

    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_16

    .line 396
    :cond_10
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->canceled:Z

    .line 397
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->finish()V

    .line 399
    :cond_16
    return-void
.end method

.method public onComplete(Lcn/sharesdk/framework/Platform;ILjava/util/HashMap;)V
    .registers 6
    .param p1, "platform"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcn/sharesdk/framework/Platform;",
            "I",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 563
    .local p3, "res":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 564
    .local v0, "msg":Landroid/os/Message;
    const/4 v1, 0x2

    iput v1, v0, Landroid/os/Message;->what:I

    .line 565
    const/4 v1, 0x1

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 566
    iput p2, v0, Landroid/os/Message;->arg2:I

    .line 567
    iput-object p1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 568
    invoke-static {v0, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    .line 569
    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .registers 3
    .param p1, "newConfig"    # Landroid/content/res/Configuration;

    .prologue
    .line 409
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    if-eqz v0, :cond_9

    .line 410
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    invoke-virtual {v0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->onConfigurationChanged()V

    .line 412
    :cond_9
    return-void
.end method

.method public onCreate()V
    .registers 10

    .prologue
    const/4 v8, 0x0

    const/4 v7, 0x0

    .line 264
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 265
    .local v0, "copy":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    invoke-virtual {v0, v6}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    .line 266
    const-string v6, "platform"

    invoke-virtual {v0, v6}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_85

    .line 267
    const-string v6, "platform"

    invoke-virtual {v0, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    .line 268
    .local v1, "name":Ljava/lang/String;
    iget-boolean v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->silent:Z

    if-eqz v6, :cond_37

    .line 269
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    .line 271
    .local v5, "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v6, v1}, Lcn/sharesdk/framework/ShareSDK;->getPlatform(Landroid/content/Context;Ljava/lang/String;)Lcn/sharesdk/framework/Platform;

    move-result-object v6

    invoke-virtual {v5, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 272
    invoke-virtual {p0, v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->share(Ljava/util/HashMap;)V

    .line 295
    .end local v5    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :goto_33
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->finish()V

    .line 323
    .end local v1    # "name":Ljava/lang/String;
    :goto_36
    return-void

    .line 273
    .restart local v1    # "name":Ljava/lang/String;
    :cond_37
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v6, v1}, Lcn/sharesdk/onekeyshare/ShareCore;->isUseClientToShare(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_51

    .line 274
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    .line 276
    .restart local v5    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v6, v1}, Lcn/sharesdk/framework/ShareSDK;->getPlatform(Landroid/content/Context;Ljava/lang/String;)Lcn/sharesdk/framework/Platform;

    move-result-object v6

    invoke-virtual {v5, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 277
    invoke-virtual {p0, v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->share(Ljava/util/HashMap;)V

    goto :goto_33

    .line 279
    .end local v5    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :cond_51
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v6, v1}, Lcn/sharesdk/framework/ShareSDK;->getPlatform(Landroid/content/Context;Ljava/lang/String;)Lcn/sharesdk/framework/Platform;

    move-result-object v4

    .line 280
    .local v4, "pp":Lcn/sharesdk/framework/Platform;
    instance-of v6, v4, Lcn/sharesdk/framework/CustomPlatform;

    if-eqz v6, :cond_6d

    .line 281
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    .line 283
    .restart local v5    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-static {v6, v1}, Lcn/sharesdk/framework/ShareSDK;->getPlatform(Landroid/content/Context;Ljava/lang/String;)Lcn/sharesdk/framework/Platform;

    move-result-object v6

    invoke-virtual {v5, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 284
    invoke-virtual {p0, v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->share(Ljava/util/HashMap;)V

    goto :goto_33

    .line 286
    .end local v5    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :cond_6d
    new-instance v2, Lcn/sharesdk/onekeyshare/EditPage;

    invoke-direct {v2}, Lcn/sharesdk/onekeyshare/EditPage;-><init>()V

    .line 287
    .local v2, "page":Lcn/sharesdk/onekeyshare/EditPage;
    invoke-virtual {v2, v0}, Lcn/sharesdk/onekeyshare/EditPage;->setShareData(Ljava/util/HashMap;)V

    .line 288
    invoke-virtual {v2, p0}, Lcn/sharesdk/onekeyshare/EditPage;->setParent(Lcn/sharesdk/onekeyshare/OnekeyShare;)V

    .line 289
    iget-boolean v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->dialogMode:Z

    if-eqz v6, :cond_7f

    .line 290
    invoke-virtual {v2}, Lcn/sharesdk/onekeyshare/EditPage;->setDialogMode()V

    .line 292
    :cond_7f
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-virtual {v2, v6, v8}, Lcn/sharesdk/onekeyshare/EditPage;->show(Landroid/content/Context;Landroid/content/Intent;)V

    goto :goto_33

    .line 299
    .end local v1    # "name":Ljava/lang/String;
    .end local v2    # "page":Lcn/sharesdk/onekeyshare/EditPage;
    .end local v4    # "pp":Lcn/sharesdk/framework/Platform;
    :cond_85
    iput-boolean v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->finishing:Z

    .line 300
    iput-boolean v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->canceled:Z

    .line 301
    invoke-direct {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->initPageView()V

    .line 302
    invoke-direct {p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->initAnim()V

    .line 303
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {v6, v7}, Landroid/app/Activity;->setContentView(Landroid/view/View;)V

    .line 305
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    invoke-virtual {v6}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v3

    .line 306
    .local v3, "params":Landroid/view/WindowManager$LayoutParams;
    const/high16 v6, 0x3f000000

    iput v6, v3, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 307
    iget v6, v3, Landroid/view/WindowManager$LayoutParams;->flags:I

    or-int/lit8 v6, v6, 0x2

    iput v6, v3, Landroid/view/WindowManager$LayoutParams;->flags:I

    .line 311
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    iget-boolean v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->silent:Z

    invoke-virtual {v6, v7}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setSilent(Z)V

    .line 312
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->hiddenPlatforms:Ljava/util/HashMap;

    invoke-virtual {v6, v7}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setHiddenPlatforms(Ljava/util/HashMap;)V

    .line 313
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customers:Ljava/util/ArrayList;

    invoke-virtual {v6, v7}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setCustomerLogos(Ljava/util/ArrayList;)V

    .line 314
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->grid:Lcn/sharesdk/onekeyshare/PlatformGridView;

    invoke-virtual {v6, p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setParent(Lcn/sharesdk/onekeyshare/OnekeyShare;)V

    .line 315
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->btnCancel:Landroid/widget/Button;

    invoke-virtual {v6, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 318
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    invoke-virtual {v6}, Landroid/widget/FrameLayout;->clearAnimation()V

    .line 319
    iget-object v6, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->flPage:Landroid/widget/FrameLayout;

    iget-object v7, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->animShow:Landroid/view/animation/Animation;

    invoke-virtual {v6, v7}, Landroid/widget/FrameLayout;->startAnimation(Landroid/view/animation/Animation;)V

    .line 322
    const/4 v6, 0x1

    invoke-static {v6, v8}, Lcn/sharesdk/framework/ShareSDK;->logDemoEvent(ILcn/sharesdk/framework/Platform;)V

    goto/16 :goto_36
.end method

.method public onError(Lcn/sharesdk/framework/Platform;ILjava/lang/Throwable;)V
    .registers 6
    .param p1, "platform"    # Lcn/sharesdk/framework/Platform;
    .param p2, "action"    # I
    .param p3, "t"    # Ljava/lang/Throwable;

    .prologue
    const/4 v1, 0x2

    .line 572
    invoke-virtual {p3}, Ljava/lang/Throwable;->printStackTrace()V

    .line 574
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 575
    .local v0, "msg":Landroid/os/Message;
    iput v1, v0, Landroid/os/Message;->what:I

    .line 576
    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 577
    iput p2, v0, Landroid/os/Message;->arg2:I

    .line 578
    iput-object p3, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 579
    invoke-static {v0, p0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    .line 582
    const/4 v1, 0x4

    invoke-static {v1, p1}, Lcn/sharesdk/framework/ShareSDK;->logDemoEvent(ILcn/sharesdk/framework/Platform;)V

    .line 583
    return-void
.end method

.method public onKeyEvent(ILandroid/view/KeyEvent;)Z
    .registers 4
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 402
    const/4 v0, 0x4

    if-ne p1, v0, :cond_6

    .line 403
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->canceled:Z

    .line 405
    :cond_6
    invoke-super {p0, p1, p2}, Lcn/sharesdk/framework/FakeActivity;->onKeyEvent(ILandroid/view/KeyEvent;)Z

    move-result v0

    return v0
.end method

.method public setAddress(Ljava/lang/String;)V
    .registers 4
    .param p1, "address"    # Ljava/lang/String;

    .prologue
    .line 104
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "address"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 105
    return-void
.end method

.method public setCallback(Lcn/sharesdk/framework/PlatformActionListener;)V
    .registers 2
    .param p1, "callback"    # Lcn/sharesdk/framework/PlatformActionListener;

    .prologue
    .line 203
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->callback:Lcn/sharesdk/framework/PlatformActionListener;

    .line 204
    return-void
.end method

.method public setComment(Ljava/lang/String;)V
    .registers 4
    .param p1, "comment"    # Ljava/lang/String;

    .prologue
    .line 154
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "comment"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 155
    return-void
.end method

.method public setCustomerLogo(ILjava/lang/String;Landroid/view/View$OnClickListener;)V
    .registers 6
    .param p1, "logoResId"    # I
    .param p2, "label"    # Ljava/lang/String;
    .param p3, "ocListener"    # Landroid/view/View$OnClickListener;

    .prologue
    .line 223
    new-instance v0, Lcn/sharesdk/onekeyshare/CustomerLogo;

    invoke-direct {v0}, Lcn/sharesdk/onekeyshare/CustomerLogo;-><init>()V

    .line 224
    .local v0, "cl":Lcn/sharesdk/onekeyshare/CustomerLogo;
    iput-object p2, v0, Lcn/sharesdk/onekeyshare/CustomerLogo;->label:Ljava/lang/String;

    .line 225
    iput p1, v0, Lcn/sharesdk/onekeyshare/CustomerLogo;->logoResId:I

    .line 226
    iput-object p3, v0, Lcn/sharesdk/onekeyshare/CustomerLogo;->listener:Landroid/view/View$OnClickListener;

    .line 227
    iget-object v1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customers:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 228
    return-void
.end method

.method public setDialogMode()V
    .registers 4

    .prologue
    .line 237
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->dialogMode:Z

    .line 238
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "dialogMode"

    iget-boolean v2, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->dialogMode:Z

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 239
    return-void
.end method

.method public setFilePath(Ljava/lang/String;)V
    .registers 4
    .param p1, "filePath"    # Ljava/lang/String;

    .prologue
    .line 149
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "filePath"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 150
    return-void
.end method

.method public setImagePath(Ljava/lang/String;)V
    .registers 4
    .param p1, "imagePath"    # Ljava/lang/String;

    .prologue
    .line 132
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 133
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "imagePath"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 134
    :cond_d
    return-void
.end method

.method public setImageUrl(Ljava/lang/String;)V
    .registers 4
    .param p1, "imageUrl"    # Ljava/lang/String;

    .prologue
    .line 138
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_d

    .line 139
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "imageUrl"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 140
    :cond_d
    return-void
.end method

.method public setLatitude(F)V
    .registers 5
    .param p1, "latitude"    # F

    .prologue
    .line 179
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "latitude"

    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 180
    return-void
.end method

.method public setLongitude(F)V
    .registers 5
    .param p1, "longitude"    # F

    .prologue
    .line 184
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "longitude"

    invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 185
    return-void
.end method

.method public setNotification(ILjava/lang/String;)V
    .registers 3
    .param p1, "icon"    # I
    .param p2, "title"    # Ljava/lang/String;

    .prologue
    .line 98
    iput p1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->notifyIcon:I

    .line 99
    iput-object p2, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->notifyTitle:Ljava/lang/String;

    .line 100
    return-void
.end method

.method public setPlatform(Ljava/lang/String;)V
    .registers 4
    .param p1, "platform"    # Ljava/lang/String;

    .prologue
    .line 194
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "platform"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 195
    return-void
.end method

.method public setShareContentCustomizeCallback(Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;)V
    .registers 2
    .param p1, "callback"    # Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;

    .prologue
    .line 213
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customizeCallback:Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;

    .line 214
    return-void
.end method

.method public setSilent(Z)V
    .registers 2
    .param p1, "silent"    # Z

    .prologue
    .line 189
    iput-boolean p1, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->silent:Z

    .line 190
    return-void
.end method

.method public setSite(Ljava/lang/String;)V
    .registers 4
    .param p1, "site"    # Ljava/lang/String;

    .prologue
    .line 159
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "site"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 160
    return-void
.end method

.method public setSiteUrl(Ljava/lang/String;)V
    .registers 4
    .param p1, "siteUrl"    # Ljava/lang/String;

    .prologue
    .line 164
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "siteUrl"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 165
    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .registers 4
    .param p1, "text"    # Ljava/lang/String;

    .prologue
    .line 122
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "text"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 123
    return-void
.end method

.method public setTitle(Ljava/lang/String;)V
    .registers 4
    .param p1, "title"    # Ljava/lang/String;

    .prologue
    .line 112
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "title"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 113
    return-void
.end method

.method public setTitleUrl(Ljava/lang/String;)V
    .registers 4
    .param p1, "titleUrl"    # Ljava/lang/String;

    .prologue
    .line 117
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "titleUrl"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 118
    return-void
.end method

.method public setUrl(Ljava/lang/String;)V
    .registers 4
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 144
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "url"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 145
    return-void
.end method

.method public setVenueDescription(Ljava/lang/String;)V
    .registers 4
    .param p1, "venueDescription"    # Ljava/lang/String;

    .prologue
    .line 174
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "venueDescription"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 175
    return-void
.end method

.method public setVenueName(Ljava/lang/String;)V
    .registers 4
    .param p1, "venueName"    # Ljava/lang/String;

    .prologue
    .line 169
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v1, "venueName"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 170
    return-void
.end method

.method public setViewToShare(Landroid/view/View;)V
    .registers 6
    .param p1, "viewToShare"    # Landroid/view/View;

    .prologue
    .line 249
    :try_start_0
    invoke-static {p1}, Lcn/sharesdk/framework/utils/R;->saveViewToImage(Landroid/view/View;)Ljava/lang/String;

    move-result-object v1

    .line 250
    .local v1, "path":Ljava/lang/String;
    iget-object v2, p0, Lcn/sharesdk/onekeyshare/OnekeyShare;->reqMap:Ljava/util/HashMap;

    const-string v3, "viewToShare"

    invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_b
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_b} :catch_c

    .line 254
    .end local v1    # "path":Ljava/lang/String;
    :goto_b
    return-void

    .line 251
    :catch_c
    move-exception v0

    .line 252
    .local v0, "e":Ljava/lang/Throwable;
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_b
.end method

.method public share(Ljava/util/HashMap;)V
    .registers 28
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Lcn/sharesdk/framework/Platform;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 450
    .local p1, "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/16 v20, 0x0

    .line 451
    .local v20, "started":Z
    invoke-virtual/range {p1 .. p1}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v22

    invoke-interface/range {v22 .. v22}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v22

    :goto_a
    invoke-interface/range {v22 .. v22}, Ljava/util/Iterator;->hasNext()Z

    move-result v23

    if-eqz v23, :cond_2f7

    invoke-interface/range {v22 .. v22}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map$Entry;

    .line 452
    .local v5, "ent":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Lcn/sharesdk/framework/Platform;

    .line 453
    .local v15, "plat":Lcn/sharesdk/framework/Platform;
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->disableSSO:Z

    move/from16 v23, v0

    move/from16 v0, v23

    invoke-virtual {v15, v0}, Lcn/sharesdk/framework/Platform;->SSOSetting(Z)V

    .line 454
    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v14

    .line 455
    .local v14, "name":Ljava/lang/String;
    const-string v23, "WechatMoments"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-nez v23, :cond_49

    const-string v23, "Wechat"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-nez v23, :cond_49

    const-string v23, "WechatFavorite"

    .line 456
    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_7f

    :cond_49
    const/4 v11, 0x1

    .line 457
    .local v11, "isWechat":Z
    :goto_4a
    if-eqz v11, :cond_81

    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->isValid()Z

    move-result v23

    if-nez v23, :cond_81

    .line 458
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 459
    .local v13, "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 460
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "wechat_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 461
    .local v16, "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 462
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto :goto_a

    .line 456
    .end local v11    # "isWechat":Z
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    :cond_7f
    const/4 v11, 0x0

    goto :goto_4a

    .line 466
    .restart local v11    # "isWechat":Z
    :cond_81
    const-string v23, "GooglePlus"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    .line 467
    .local v8, "isGooglePlus":Z
    if-eqz v8, :cond_bf

    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->isValid()Z

    move-result v23

    if-nez v23, :cond_bf

    .line 468
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 469
    .restart local v13    # "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 470
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "google_plus_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 471
    .restart local v16    # "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 472
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto/16 :goto_a

    .line 476
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    :cond_bf
    const-string v23, "QQ"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    .line 477
    .local v10, "isQQ":Z
    if-eqz v10, :cond_fd

    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->isValid()Z

    move-result v23

    if-nez v23, :cond_fd

    .line 478
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 479
    .restart local v13    # "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 480
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "qq_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 481
    .restart local v16    # "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 482
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto/16 :goto_a

    .line 486
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    :cond_fd
    const-string v23, "Pinterest"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    .line 487
    .local v9, "isPinterest":Z
    if-eqz v9, :cond_13b

    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->isValid()Z

    move-result v23

    if-nez v23, :cond_13b

    .line 488
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 489
    .restart local v13    # "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 490
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "pinterest_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 491
    .restart local v16    # "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 492
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto/16 :goto_a

    .line 496
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    :cond_13b
    const-string v23, "Instagram"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_1a8

    .line 497
    new-instance v21, Landroid/content/Intent;

    const-string v23, "android.intent.action.SEND"

    move-object/from16 v0, v21

    move-object/from16 v1, v23

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 498
    .local v21, "test":Landroid/content/Intent;
    const-string v23, "com.instagram.android"

    move-object/from16 v0, v21

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 499
    const-string v23, "image/*"

    move-object/from16 v0, v21

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 500
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    invoke-virtual/range {v23 .. v23}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v23

    const/16 v24, 0x0

    move-object/from16 v0, v23

    move-object/from16 v1, v21

    move/from16 v2, v24

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v17

    .line 501
    .local v17, "ri":Landroid/content/pm/ResolveInfo;
    if-nez v17, :cond_1a8

    .line 502
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 503
    .restart local v13    # "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 504
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "instagram_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 505
    .restart local v16    # "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 506
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto/16 :goto_a

    .line 511
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    .end local v17    # "ri":Landroid/content/pm/ResolveInfo;
    .end local v21    # "test":Landroid/content/Intent;
    :cond_1a8
    const-string v23, "YixinMoments"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-nez v23, :cond_1bc

    const-string v23, "Yixin"

    move-object/from16 v0, v23

    invoke-virtual {v0, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_1f3

    :cond_1bc
    const/4 v12, 0x1

    .line 512
    .local v12, "isYixin":Z
    :goto_1bd
    if-eqz v12, :cond_1f5

    invoke-virtual {v15}, Lcn/sharesdk/framework/Platform;->isValid()Z

    move-result v23

    if-nez v23, :cond_1f5

    .line 513
    new-instance v13, Landroid/os/Message;

    invoke-direct {v13}, Landroid/os/Message;-><init>()V

    .line 514
    .restart local v13    # "msg":Landroid/os/Message;
    const/16 v23, 0x1

    move/from16 v0, v23

    iput v0, v13, Landroid/os/Message;->what:I

    .line 515
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "yixin_client_inavailable"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 516
    .restart local v16    # "resId":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->activity:Landroid/app/Activity;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, v23

    iput-object v0, v13, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 517
    move-object/from16 v0, p0

    invoke-static {v13, v0}, Lcn/sharesdk/framework/utils/UIHandler;->sendMessage(Landroid/os/Message;Landroid/os/Handler$Callback;)Z

    goto/16 :goto_a

    .line 511
    .end local v12    # "isYixin":Z
    .end local v13    # "msg":Landroid/os/Message;
    .end local v16    # "resId":I
    :cond_1f3
    const/4 v12, 0x0

    goto :goto_1bd

    .line 521
    .restart local v12    # "isYixin":Z
    :cond_1f5
    invoke-interface {v5}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/HashMap;

    .line 522
    .local v4, "data":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const/16 v19, 0x1

    .line 523
    .local v19, "shareType":I
    const-string v23, "imagePath"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v23

    invoke-static/range {v23 .. v23}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    .line 524
    .local v6, "imagePath":Ljava/lang/String;
    if-eqz v6, :cond_2b1

    new-instance v23, Ljava/io/File;

    move-object/from16 v0, v23

    invoke-direct {v0, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual/range {v23 .. v23}, Ljava/io/File;->exists()Z

    move-result v23

    if-eqz v23, :cond_2b1

    .line 525
    const/16 v19, 0x2

    .line 526
    const-string v23, ".gif"

    move-object/from16 v0, v23

    invoke-virtual {v6, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v23

    if-eqz v23, :cond_291

    .line 527
    const/16 v19, 0x9

    .line 542
    :cond_226
    :goto_226
    const-string v23, "shareType"

    invoke-static/range {v19 .. v19}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v24

    move-object/from16 v0, v23

    move-object/from16 v1, v24

    invoke-virtual {v4, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 544
    if-nez v20, :cond_26d

    .line 545
    const/16 v20, 0x1

    .line 546
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->callback:Lcn/sharesdk/framework/PlatformActionListener;

    move-object/from16 v23, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_26a

    .line 547
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    const-string v24, "sharing"

    invoke-static/range {v23 .. v24}, Lcn/sharesdk/framework/utils/R;->getStringRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v16

    .line 548
    .restart local v16    # "resId":I
    if-lez v16, :cond_26a

    .line 549
    const-wide/16 v24, 0x7d0

    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v23

    move-object/from16 v0, v23

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v23

    move-object/from16 v0, p0

    move-wide/from16 v1, v24

    move-object/from16 v3, v23

    invoke-direct {v0, v1, v2, v3}, Lcn/sharesdk/onekeyshare/OnekeyShare;->showNotification(JLjava/lang/String;)V

    .line 552
    .end local v16    # "resId":I
    :cond_26a
    invoke-virtual/range {p0 .. p0}, Lcn/sharesdk/onekeyshare/OnekeyShare;->finish()V

    .line 554
    :cond_26d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->callback:Lcn/sharesdk/framework/PlatformActionListener;

    move-object/from16 v23, v0

    move-object/from16 v0, v23

    invoke-virtual {v15, v0}, Lcn/sharesdk/framework/Platform;->setPlatformActionListener(Lcn/sharesdk/framework/PlatformActionListener;)V

    .line 555
    new-instance v18, Lcn/sharesdk/onekeyshare/ShareCore;

    invoke-direct/range {v18 .. v18}, Lcn/sharesdk/onekeyshare/ShareCore;-><init>()V

    .line 556
    .local v18, "shareCore":Lcn/sharesdk/onekeyshare/ShareCore;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcn/sharesdk/onekeyshare/OnekeyShare;->customizeCallback:Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;

    move-object/from16 v23, v0

    move-object/from16 v0, v18

    move-object/from16 v1, v23

    invoke-virtual {v0, v1}, Lcn/sharesdk/onekeyshare/ShareCore;->setShareContentCustomizeCallback(Lcn/sharesdk/onekeyshare/ShareContentCustomizeCallback;)V

    .line 557
    move-object/from16 v0, v18

    invoke-virtual {v0, v15, v4}, Lcn/sharesdk/onekeyshare/ShareCore;->share(Lcn/sharesdk/framework/Platform;Ljava/util/HashMap;)Z

    goto/16 :goto_a

    .line 528
    .end local v18    # "shareCore":Lcn/sharesdk/onekeyshare/ShareCore;
    :cond_291
    const-string v23, "url"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_226

    const-string v23, "url"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v23 .. v23}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v23

    if-nez v23, :cond_226

    .line 529
    const/16 v19, 0x4

    goto/16 :goto_226

    .line 532
    :cond_2b1
    const-string v23, "imageUrl"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    .line 533
    .local v7, "imageUrl":Ljava/lang/Object;
    if-eqz v7, :cond_226

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v23 .. v23}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v23

    if-nez v23, :cond_226

    .line 534
    const/16 v19, 0x2

    .line 535
    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v23

    const-string v24, ".gif"

    invoke-virtual/range {v23 .. v24}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v23

    if-eqz v23, :cond_2d7

    .line 536
    const/16 v19, 0x9

    goto/16 :goto_226

    .line 537
    :cond_2d7
    const-string v23, "url"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v23

    if-eqz v23, :cond_226

    const-string v23, "url"

    move-object/from16 v0, v23

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v23

    invoke-virtual/range {v23 .. v23}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v23

    invoke-static/range {v23 .. v23}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v23

    if-nez v23, :cond_226

    .line 538
    const/16 v19, 0x4

    goto/16 :goto_226

    .line 559
    .end local v4    # "data":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v5    # "ent":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v6    # "imagePath":Ljava/lang/String;
    .end local v7    # "imageUrl":Ljava/lang/Object;
    .end local v8    # "isGooglePlus":Z
    .end local v9    # "isPinterest":Z
    .end local v10    # "isQQ":Z
    .end local v11    # "isWechat":Z
    .end local v12    # "isYixin":Z
    .end local v14    # "name":Ljava/lang/String;
    .end local v15    # "plat":Lcn/sharesdk/framework/Platform;
    .end local v19    # "shareType":I
    :cond_2f7
    return-void
.end method

.method public show(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 93
    const/4 v0, 0x0

    invoke-super {p0, p1, v0}, Lcn/sharesdk/framework/FakeActivity;->show(Landroid/content/Context;Landroid/content/Intent;)V

    .line 94
    return-void
.end method
